home *** CD-ROM | disk | FTP | other *** search
- Path: queens-belfast.ac.uk!gbw
- Newsgroups: comp.lang.c++
- Subject: No struct in C++!!?
- Message-ID: <1996Feb14.151620.5532@queens-belfast.ac.uk>
- From: gbw@harrier.am.qub.ac.uk (Georg Woste)
- Date: 14 Feb 96 15:16:18 GMT
- Sender: gbw@qub.ac.uk (Georg Woste)
- Organization: DAMTP, Queen's University of Belfast
- Nntp-Posting-Host: harrier.am.qub.ac.uk
-
- Hi,
-
- a beginners question: I found in different C++ books examples of C++ programms
- which contain type declarations and definitions in the main() programm - for
- example a struct - as in C.
- My question is, whether this is a contradiction
- to the paradigm of C++. Shouldn't be everything in a C++ programm
- either classes, objects or the interaction between objects?
- So is it bad C++ style, to use functions or data outside from
- classes (objects)?
-
- Thanks!
-
- Georg Woeste
-